package org.jeecg.modules.demo.crm.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.demo.crm.annotation.FileField;
import org.jeecg.modules.demo.crm.annotation.TitleField;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 开票任务表
 * @Author: jeecg-boot
 * @Date:   2025-05-27
 * @Version: V1.0
 */
@Data
@TableName("c_invoice_task")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="c_invoice_task对象", description="开票任务表")
public class CInvoiceTask implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**项目ID*/
    @ApiModelProperty(value = "项目ID")
    @Excel(name = "项目", width = 15, dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
    @Dict(dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
    private String projectId;

    /**子项目ID*/
    @Excel(name = "子项目", width = 15, dictTable = "c_sub_project", dicText = "sub_project_name", dicCode = "id")
    @Dict(dictTable = "c_sub_project", dicText = "sub_project_name", dicCode = "id")
    @ApiModelProperty(value = "子项目ID")
    private String subProjectId;

    /**子任务id*/
    @Excel(name = "子任务id", width = 15)
    @ApiModelProperty(value = "子任务id")
    private String subTaskId;
	/**开票金额*/
	@Excel(name = "开票金额", width = 15)
    @ApiModelProperty(value = "开票金额")
    private BigDecimal invoiceAmount;
	/**附件URL*/
	@Excel(name = "附件URL", width = 15)
    @ApiModelProperty(value = "附件URL")
    @FileField // AOP 监听文件数据，存入文件表
    private String attachmentUrl;
	/**开票状态*/
	@Excel(name = "开票状态", width = 15)
    @ApiModelProperty(value = "开票状态")
    private String status;
	/**关联文件记录ID*/
	@Excel(name = "关联文件记录ID", width = 15)
    @ApiModelProperty(value = "关联文件记录ID")
    @FileField // AOP 监听文件数据，存入文件表
    private String fileRecordId;
    /**财务审核描述*/
    @Excel(name = "财务审核描述", width = 15)
    @ApiModelProperty(value = "财务审核描述")
    @TitleField // AOP 监听文件数据，存入文件表
    private String auditResults;
    /**财务审核相关文件*/
    @Excel(name = "财务审核相关文件", width = 15)
    @ApiModelProperty(value = "财务审核相关文件")
    @FileField // AOP 监听文件数据，存入文件表
    private String auditFile;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
}
